﻿<#import "/common/function.ftl" as fn>
<@fn.header _title="">
<script type="text/javascript" src="${base}/resources/script/dialog/lhgdialog.min.js"></script>
<script type="text/javascript">
	$().ready( function() {
		<@compress single_line = true>
			$.dialog({type: "success", title: "操作提示", content: 
			"<#if (actionMessages?? && actionMessages?size > 0)>
				<#list actionMessages as actionMessage>
					${actionMessage}&nbsp;
				</#list>
			<#else>
				您的操作已成功!
			</#if>", okVal: "确定", ok: redirectUrl, cancel: false, width: 380, modal: true, min: false, max: false});
		</@compress>
	});
	
	var redirectUrl = function() {
		<#if redirectUrl??>
			window.location.href = "${redirectUrl}"
		<#else>
			window.history.back();
		</#if>
	}
</script>
</@fn.header>

<body class="success">
</body>
</html>